package com.deuwise.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.deuwise.system.entity.PassWordLogDo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

/**
 * Copyright
 *
 * @author chenwenchao
 * @date 2019/3/26
 * Description:
 */
public interface PassWordLogDoMapper extends BaseMapper<PassWordLogDo> {

    /**
     *获取最新更新时间
     * @param userId
     * @return
     */
    @Select("SELECT max(operate_time) FROM sys_password_log WHERE user_Id = #{userId}")
    Date getMaxUpdateTime(@Param("userId") String userId);
}
